<template>
  <div>
    <navbar title="购物车"></navbar>
    <button @click="$router.go(-1)">返回</button>
    <div v-for="(item,index) in $store.state.add" :key="index">
      <van-card num="2" price="item.old_price" desc="描述信息" title="item.title" :thumb="item.pic" />
    </div>
  </div>
</template>

<script>
//导入插件
import navbar from "../common/navbar"
export default {
    components:{
        navbar
    }
}
</script>

<style scoped>
</style>